<?

include "../config.php" ;

$id=$_GET["id"] ;

@$key=$_GET["key"] ;

doConnectDb() ;

$q="select * from student where id_student=".$id  ;
$r=mysql_query($q) ;
$row=mysql_fetch_array($r) ;
$g=$row["id_grp"] ; 




$q="delete from user_ban where id_user_real=".$id ;
mysql_query($q) ;

echo "<html><head><title>...</title>" ;

if ($key!=1)echo '<meta http-equiv="Refresh" content="2; url=moder_block.php?id_grp='.$g.'">' ;
else  echo '<meta http-equiv="Refresh" content="2; url=moder_banned.php">' ;

echo '<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">' ;
echo '</head><body>...</body></html>'; 


?>

